export const localSave = (key, value) => {
    localStorage.setItem(key, value);
};

export const localRead = (key) => {
    return localStorage.getItem(key) || '';
};

/**
 * @description 本地存储和获取导通任务列表
 */
export const setTaskListInLocalstorage = (list) => {
    localStorage.localTaskList = JSON.stringify(list);
};
/**
 * @returns {Array} 本地存储和获取导通任务列表
 */
export const getTaskListFromLocalstorage = () => {
    const list = localStorage.localTaskList;
    return list ? JSON.parse(list) : [];
};